<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller{
	public function __construct(){
		//调用父类的构造方法
		parent::__construct();
		//友情链接
		$Friendsmodel = M ( 'Friends' );
		$friends = $Friendsmodel->select ();
		$this->assign ( 'friends', $friends );
	}
}